WPO\WC\PDF_Invoices\Main D

Total Complexity 375
Dependencies 9
Dependents 1
Total lines 1,645
Lines of code 1,089
Logical lines of code 708
Comment lines 335
Methods 58
Properties 7

Methods 58

Method Rating Maintainability Complexity Lines of code
generate_document_ajax()
D
22
56 166
attach_document_to_email()
C
34 25 78
log_document_creation_trigger_to_order_meta()
A
48 16 29
temporary_files_cleanup()
A
42 13 50
document_printed_ajax()
A
47 14 31
get_tmp_path()
A
45 13 43
get_documents_for_email()
A
47 13 33
tmp_subfolder_has_files()
A
47 12 34
document_can_be_manually_marked_printed()
A
55 13 16
copy_directory()
A
47 11 37
init_tmp()
A
47 10 38
page_number_replacements()
A
54 11 18
get_document_pdf_attachment()
A
50 10 28
mark_document_printed()
A
55 10 16
log_to_order_notes()
A
54 9 21
no_dir_notice()
A
49 8 31
display_due_date()
A
53 8 21
maybe_reinstall_fonts()
A
55 8 17
unmark_document_printed()
S
60 7 12
disable_free()
S
58 6 15
tmp_folders_exist_and_writable()
S
60 6 13
copy_fonts()
S
52 5 23
__construct()
S
45 4 36
get_tmp_base()
S
57 5 17
get_document_printed_data()
S
63 6 9
log_document_printed_to_order_notes()
S
61 5 11
is_document_printed()
S
64 5 9
log_document_creation_to_order_notes()
S
64 5 8
set_phpmailer_validator()
S
60 4 12
disable_anonymized()
S
66 4 8
wait_for_file_lock()
S
61 3 12
file_is_locked()
S
62 3 12
load_template_functions()
S
64 3 9
set_header_logo_height()
S
66 3 9
schedule_temporary_files_cleanup()
S
65 3 8
log_unmark_document_printed_to_order_notes()
S
67 3 7
wc_webhook_topic_events()
S
68 2 7
wc_webhook_topic_hooks()
S
65 2 9
wc_webhook_topics()
S
67 2 7
instance()
S
72 2 6
format_page_number_placeholders()
S
68 2 7
get_random_string()
S
67 2 8
use_currency_code()
S
71 2 6
get_wp_upload_base()
S
64 2 10
generate_random_string()
S
66 2 8
html_currency_filters()
S
70 2 6
pdf_currency_filters()
S
67 2 7
remove_order_personal_data()
S
64 2 9
test_mode_settings()
S
71 2 6
get_document_ubl_attachment()
S
61 1 12
wc_webhook_trigger()
S
78 1 3
export_order_personal_data_meta()
S
68 1 7
enable_debug()
S
76 1 4
currency_symbol_font_styles()
S
83 1 5
get_document_triggers()
S
64 1 9
get_rtl_currencies()
S
75 1 3
remove_order_personal_data_meta()
S
65 1 9
use_currency_font()
S
76 1 4